<script src="<?php echo $baseurl?>public/ckeditor/ckeditor.js"></script>
<script src="<?php echo $baseurl?>public/ckeditor/adapters/jquery.js"></script>
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">Gửi email</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
            <div class="panel-body">
                <div class="row">
				
                    <div class="col-lg-8">
                        <form method="post">
						<div class="form-group">
							<label>Chủ đề</label>
							<input class="form-control" name="subject_email" type="text" placeholder="Chủ đề" >
							<!--<p class="help-block"></p>-->
							<span class="error_notice" ><?php echo form_error('subject_email'); ?> </span>
						</div>
						<div class="form-group">
							<label>Nội dung</label>
							<textarea class="form-control" rows="6" name="content" id="content" placeholder="Nội dung"><?php $this->input->post('content')?></textarea>
							<span class="error_notice" ><?php echo form_error('content'); ?> </span>
						</div>
						<div class="form-group">
							<label>Gửi tới <?php echo $user->fullname; ?></label>
							<input class="form-control" name="user" type="text" value="<?php echo $user->email; ?>" >
							<!--<p class="help-block"></p>-->
							<span class="error_notice" ><?php echo form_error('user'); ?> </span>
						</div>
						<button type="submit" class="btn btn-outline btn-primary">Gửi</button>

                        </form>
					</div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.panel-body -->
        </div>
	</div>
	<!-- /.col-lg-12 -->
	
</div>

<!-- /.row -->

<script type="text/javascript"> 
  $( document ).ready(function() {
    $( "#time_start" ).datepicker({ dateFormat: 'dd/mm/yy' });
    $( "#time_end" ).datepicker({ dateFormat: 'dd/mm/yy' });
  });
</script>

<script type="text/javascript">
        CKEDITOR.replace( 'content', {  enterMode : CKEDITOR.ENTER_BR, shiftEnterMode : CKEDITOR.ENTER_BR } );
        CKEDITOR.on( 'instanceReady', function( ev )
        {
         ev.editor.dataProcessor.writer.setRules( 'br',
         {
            indent : false,
            breakBeforeOpen : false,
            breakAfterOpen : false,
            breakBeforeClose : false,
            breakAfterClose : false
		});
		});
</script> 

<!--script src="<?php echo $baseurl?>public/flexText/jquery.flexText.min.js"></script>
<link rel="stylesheet" href="<?php echo $baseurl?>public/flexText/style.css"/>
<script>
    $(function () {
        $('.autoheight').flexText();
    });
</script-->



